package view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import java.awt.Color;
import java.awt.SystemColor;
import javax.swing.JTextArea;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JMenu;
import javax.swing.JMenuBar;
import java.awt.Window.Type;
import java.awt.Dialog.ModalExclusionType;
import javax.swing.ImageIcon;

public class JCadastraLivro extends JFrame {

	private JPanel contentPane;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					JCadastraLivro frame = new JCadastraLivro();
					frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the frame.
	 */
	public JCadastraLivro() {
		setResizable(false);
		setAutoRequestFocus(false);
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setForeground(Color.WHITE);
		setTitle("Cadastra de Livro");
		setType(Type.UTILITY);
		setBounds(100, 100, 611, 443);
		
		JMenuBar menuBar = new JMenuBar();
		setJMenuBar(menuBar);
		
		JMenu mnAjuda = new JMenu("Ajuda");
		menuBar.add(mnAjuda);
		contentPane = new JPanel();
		contentPane.setBackground(new Color(204, 204, 255));
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		JLabel lblCadastroDeLivro = new JLabel("Cadastro de Livro");
		lblCadastroDeLivro.setBounds(272, 27, 118, 14);
		contentPane.add(lblCadastroDeLivro);
		
		JLabel lblTitulo = new JLabel("Titulo:");
		lblTitulo.setBounds(55, 103, 53, 14);
		contentPane.add(lblTitulo);
		
		JTextArea textArea_3 = new JTextArea();
		textArea_3.setBackground(Color.LIGHT_GRAY);
		textArea_3.setBounds(118, 98, 183, 22);
		contentPane.add(textArea_3);
		
		JLabel lblAutor = new JLabel("Autor:");
		lblAutor.setBounds(55, 147, 53, 14);
		contentPane.add(lblAutor);
		
		JTextArea textArea_4 = new JTextArea();
		textArea_4.setBackground(Color.LIGHT_GRAY);
		textArea_4.setBounds(118, 142, 183, 22);
		contentPane.add(textArea_4);
		
		JTextArea textArea_5 = new JTextArea();
		textArea_5.setBackground(Color.LIGHT_GRAY);
		textArea_5.setBounds(118, 190, 183, 22);
		contentPane.add(textArea_5);
		
		JLabel lblCaixa = new JLabel("Caixa");
		lblCaixa.setBounds(55, 195, 53, 14);
		contentPane.add(lblCaixa);
		
		JButton button = new JButton("Cancelar");
		button.setBounds(220, 295, 89, 23);
		contentPane.add(button);
		
		JButton button_1 = new JButton("Cadastrar");
		button_1.setBounds(348, 295, 81, 23);
		contentPane.add(button_1);
		
		JLabel labelfundo = new JLabel((String) null);
		labelfundo.setIcon(new ImageIcon("C:\\Users\\Dick developer\\workspace\\ClubeDaLeitura\\src\\image\\fundobranco.jpg"));
		labelfundo.setBounds(0, 0, 605, 398);
		contentPane.add(labelfundo);
	}
}
